package com.pactera.madp.cp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pactera.madp.common.core.util.R;
import com.pactera.madp.cp.api.dto.marketing.MarketingExcelCreateDTO;
import com.pactera.madp.cp.api.dto.marketing.MarketingExcelUpdateDTO;
import com.pactera.madp.cp.api.entity.marketing.MarketingExcelEntity;
import com.pactera.madp.cp.api.vo.marketing.MarketingExcelVO;

import java.util.List;
import java.util.Map;

/**
 * (McMarketingExcel)表服务接口
 *
 * @author yushen.qi
 * @since 2021-05-24 18:56:04
 */
public interface MarketingExcelService extends IService<MarketingExcelEntity> {

    /**
     * 模糊查询
     *
     * @param title
     * @param classification
     * @return
     */
    List<MarketingExcelVO> selectAllOrName(String title, Integer classification);

    /**
     * 分页模糊查询
     *
     * @param page
     * @param title
     * @param classification
     * @return
     */
    IPage selectAllByPageOrName(Page page, String title, Integer classification);

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Map<String, Integer> insert(MarketingExcelCreateDTO dto);

    /**
     * 修改

     * @param
     * @return
     */
    boolean update(MarketingExcelUpdateDTO wordDto);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    R remove(Integer id);

}
